package com.liu.service.impl;

import com.liu.entity.Appraise;
import com.liu.mapper.AppraiseMapper;
import com.liu.service.AppraiseService;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;
import java.util.List;

/**
 * (Appraise)表服务实现类
 *
 * @author makejava
 * @since 2023-02-09 12:34:32
 */
@Service("appraiseServiceImpl")
@Transactional
public class AppraiseServiceImpl implements AppraiseService {
    @Resource
    private AppraiseMapper appraiseMapper;

    @Override
    public List<Appraise> findAppraiseByPhy(Integer id) {
        return this.appraiseMapper.findAppraiseByPhy(id);
    }

    @Override
    public Long phyCount(Integer id) {
        return this.appraiseMapper.phyCount(id);
    }

    @Override
    public Appraise queryById(Integer id) {
        return this.appraiseMapper.queryById(id);
    }

    @Override
    public List<Appraise> findAll() {
        return this.appraiseMapper.findAll();
    }

    @Override
    public List<Appraise> userAppraise(Integer pageNum, Integer pageSize, Integer id) {
        return this.appraiseMapper.userAppraise(pageNum, pageSize, id);
    }

    @Override
    public long userCount(Integer id) {
        return this.appraiseMapper.userCount(id);
    }

    @Override
    public List<Appraise> findAppraiseByHos(Integer id) {
        return this.appraiseMapper.findAppraiseByHos(id);
    }

    @Override
    public Long hosCount(Integer id) {
        return this.appraiseMapper.hosCount(id);
    }

    @Override
    public List<Appraise> queryAllByLimit(Integer pageNum, Integer pageSize) {
        return this.appraiseMapper.queryAllByLimit(pageNum,pageSize);
    }

    @Override
    public long count() {
        return this.appraiseMapper.count();
    }

    @Override
    public int insert(Appraise appraise) {
        return this.appraiseMapper.insert(appraise);
    }

    @Override
    public int insertBatch(List<Appraise> entities) {
        return this.appraiseMapper.insertBatch(entities);
    }

    @Override
    public int update(Appraise appraise) {
        return this.appraiseMapper.update(appraise);
    }

    @Override
    public int deleteById(Integer id) {
        return this.appraiseMapper.deleteById(id);
    }

    @Override
    public int deleteByIds(List<Integer> ids) {
        return this.appraiseMapper.deleteByIds(ids);
    }
}
